package org.vagile.bootstart;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.Date;
import java.util.concurrent.TimeUnit;

@SpringBootApplication
public class BootStartApplication {
    static Logger logger = LoggerFactory.getLogger(BootStartApplication.class);

    public static void main(String[] args) throws InterruptedException {
        SpringApplication.run(BootStartApplication.class, args);
        while (true) {
            TimeUnit.SECONDS.sleep(1l);
            logger.info("Example log from {}", BootStartApplication.class.getSimpleName());
        }
    }

}
